package myPack1;

import java.io.File;
import java.util.concurrent.TimeUnit;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.sikuli.api.DesktopScreenRegion;
import org.sikuli.api.ScreenRegion;
import org.sikuli.api.Target;
import org.sikuli.api.visual.DesktopCanvas;

public class HandleFalshObjects {
	
	WebDriver driver;
	String url;
	
	@Before
	public void launchBrowser() throws Exception{
		driver = new FirefoxDriver();
		
		driver.manage().window().maximize();
		
		url = "https://www.youtube.com/watch?v=8zVLu6xU73E";
		driver.manage().timeouts().implicitlyWait(45, TimeUnit.SECONDS);
	}
	
	@Test
	public void atTest() throws Exception{
		//Test Case logic
		
		driver.get(url);
	File imgPatternPlay = new  File("imgPattern/Pause.png");
	
	ScreenRegion screen = new DesktopScreenRegion();
	
	DesktopScreenRegion dr = new DesktopScreenRegion();
	
	 
	
		
	}
	
	@After
	public void atAfter() throws Exception{
		
	}

}
